package john.wenzi.server.service.Impl;

import java.util.List;

import john.wenzi.server.dao.impl.FileUploadDaoImpl;
import john.wenzi.server.entity.FileUploadEntity;
import john.wenzi.server.service.FileUploadService;

public class FileUploadServiceImpl implements FileUploadService{

	private FileUploadDaoImpl fileUploadDaoImpl = new FileUploadDaoImpl();
	
	@Override
	public void insertUploadRecord(FileUploadEntity fileUploadEntity) throws Exception {
		fileUploadDaoImpl.insertUploadRecord(fileUploadEntity);
	}

	@Override
	public FileUploadEntity findUploadRecord(String uuidName) throws Exception {
		FileUploadEntity fileUploadEntity = fileUploadDaoImpl.findUploadRecord(uuidName);
		return fileUploadEntity;
	}

	@Override
	public List<FileUploadEntity> findAllUploadRecord() throws Exception {
		List<FileUploadEntity> list = fileUploadDaoImpl.findAllUploadRecord();
		return list;
	}

	

}
